import http from '../utlis/http.js';
export const resphoneApi = ({
	code,
	encryptedData,
	iv
}) => {
	return http({
		url: '/Apicar/resphone',
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: {
			code,
			encryptedData,
			iv
		}
	})
}
//集采分类
export const jicaiTypeApi = () => {
	return http({
		url: '/index/jicaiType'
	})
}
//集采列表
export const jicaiListApi = (data) => {
	return http({
		url: '/index/jicaiList',
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data
	})
}
//用户信息
export const userinfoApi = (u_id) => {
	return http({
		url: '/index/userinfo',
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: {
			u_id
		}
	})
}
//新建用户
export const addUserApi = (data) => {
	return http({
		url: '/Apicar/addUser',
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data
	})
}
//广告接口
export const bannerListApi = (city) => {
	return http({
		url: '/index/bannerList',
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		},
		data: {
			city
		}
	})
}
